package mk.com.ldm.corepoint.implementation.client.view;

import mk.com.ldm.corepoint.implementation.client.presenter.MainPresenter;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Widget;

public class MainView extends Composite implements MainPresenter.Display {

	private HorizontalPanel content;

	// TODO: Main menu generator, basic permissions, Associated simple
	// object/list pairs
	public MainView(String type) {
		content = new HorizontalPanel();
		content.setStyleName("lt-Content");

		initWidget(content);

		/**
		 * CONTENT
		 */
		

	}

	@Override
	public Widget asWidget() {
		return this;
	}

	public void setForm(Widget form) {
		content.clear();
		content.add(form);
	}

	public HorizontalPanel getContent() {
		return content;
	}

}
